﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.woodsoft.core;
using System.Xml.Serialization;
using com.woodsoft.core.Files;

namespace EQ1.Objects {
  public class UIClass : UIElement {
    public UIClass ( UIDocument doc , string name )
      : base( "" , name , "" , doc ) {
    }

    public string item {
      get {
        return this.GetAttribute( "item" );
      }
      set {
        if( this.Attributes["item"] == null )
          this.AddAttribute( "item" , value );
        else
          this.SetAttribute( "item" , value );
      }
    }

    public void Copy ( UIClass val ) {
      if( !string.IsNullOrEmpty( val.item ) )
        this.item = val.item;
    }
  }
}
